import {createRouter, createWebHashHistory} from 'vue-router'
import serverRoute from "./routes/server-route"

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      redirect: () => ({name: 'server-manager'}),
      name: 'index',
      component: () => import('../pages/index/index.vue'),
      children: [
        ...serverRoute,
      ]
    }
  ],
})

export default router
